﻿Public Class frmSystemSetting


    Private Sub BtnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCancel.Click
        Me.Dispose()
    End Sub

    Private Sub OKButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKButton.Click
        AppConfigFileSettings.UpdateAppSettings("HN_Max_Length", TxtHNMaxLength.Text)
        MsgBox("กรุณาปิดแล้วเปิดโปรแกรมใหม่เพื่อใช้การตั้งค่านี้", MsgBoxStyle.Information, "Save successful")
        Me.Dispose()
    End Sub

    Private Sub frmSystemSetting_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Me.TxtHNMaxLength.Text = System.Configuration.ConfigurationSettings.AppSettings.Get("HN_Max_Length")


    End Sub

    Private Sub TxtHNMaxLength_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TxtHNMaxLength.TextChanged

    End Sub

End Class